package com.lb.tetcommon.bean;

public class Commodity {
    private Integer cno;

    private String name;

    private Double price;

    public Commodity(Integer cno, String name, Double price) {
        this.cno = cno;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "cno=" + cno +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }

    public Commodity() {
    }

    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}